package com.like.dialog;

import android.view.View;

import com.like.entity.EventWrapper;
import com.like.shopmanager.DebitActivity;
import com.like.shopmanager.R;

import org.greenrobot.eventbus.EventBus;
import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;

@ContentView(R.layout.dialog_lack_of_money_dialog)
public class LackOfMoneyDialogFragment extends BaseDialogFragment {

    public static final String TAG_TO_RECHARGE = "to recharge";
    public static final String TAG_CANCEL = "cancel";

    @Override
    protected void onSetPosition() {
        super.onSetPosition();
        setPosition(0.8f, WRAP_CONTENT, DEFAULT_GRAVITY);
    }

    @Event(R.id.to_recharge)
    private void rechargeClick(View v) {
        EventBus.getDefault().post(new EventWrapper(null, TAG_TO_RECHARGE));
    }

    @Event(R.id.cancel)
    private void cancelClick(View v) {
        EventBus.getDefault().post(new EventWrapper(null, TAG_CANCEL));
    }
}
